﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    public enum Vagertabletype
    {
        川菜,
        湘菜,
        徽菜
    }
    class CookRobot:Robot
    {
        private Vagertabletype vagertable;

        public Vagertabletype Vagertable
        {
            get { return this.vagertable; }
            set { this.vagertable = value; }
        }

        public CookRobot(string name, Robottype type, Vagertabletype vagertable):base(name,type)
        {
            this.vagertable = vagertable;
        }
        public override void Working()
        {
            Console.WriteLine("客人：{0},请输入你想点的菜：{1}",this.Name,this.vagertable);
        }
    }
}
